<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>CMS管理平台</title>
    <link rel="stylesheet" href="css/main.css" type="text/css">
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
</head>

<body onload="getUserName();getTitles()">
    <header id="header">
        <div class="logo">
            <img src="image/avatar.png" alt="" style="width: 45px;margin: 10px 0 0 30px;">
        </div>
        <div class="user_box">
            <span id="user_name"></span>
            <a href="javascript:" id="user_logout" onclick="userLogout()"></a>
        </div>
    </header>
    <aside id="aside">
        <ul class="aside_nav">
            <li>
                <a href="./">首页</a>
            </li>
            <li class="nav">
                <a href="javascript:" onclick="getTitles()">文章管理</a>
                <ul>
                    <li>
                        <a href="">前端技术</a>
                    </li>
                    <li>
                        <a href="">后端技术</a>
                    </li>
                    <li>
                        <a href="">运维测试</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="">分类管理</a>
            </li>
        </ul>
    </aside>
    <section id="main_box">
        <div class="main">
            <div class="addButtom">
                <button onclick="a_href()">添加</button>
                <script>
                    function a_href(){
                        window.location.href = "addArticle.html";
                    }
                </script>
            </div>
            <div id="list_box"></div>
        </div>
    </section>
</body>

</html>